home *** CD-ROM | disk | FTP | other *** search
- /*
- * SFcolours - Star Fighter 3000 colours editor
- * Colours data editing windows
- * Copyright (C) 2001 Chris Bazley
- */
-
- #ifndef SFCEditColmap_h
- #define SFCEditColmap_h
-
- #include <stdbool.h>
-
- #include "toolbox.h"
- #include "SFformats.h"
- #include "flex.h"
-
- typedef struct _ViewData
- {
- ObjectId window_id; /* editing window */
- char *colour_map; /* colour map to edit (flex anchor) */
- char *last_savepath;
- bool changed_since_save;
- int file_date[2]; /* 000000CC DDDDDDDD */
- bool mouseover_watcher; /* are we null polling to check for mouseovers */
- int last_mouseover; /* gadget */
- char *sel_table; /* is colour X selected? (flex anchor) */
- int num_cols;
- int start_editnum;
- } ViewData;
-
- extern ObjectId EditColmap_create(flex_ptr colours, int hillcols, char *title, bool title_is_file);
- extern int EditColmap_get_selcolour(ViewData *data);
- extern void EditColmap_set_selcolour(ViewData *data, char mode13col);
- extern void EditColmap_clearselection(ViewData *data);
- extern void EditColmap_selectall(ViewData *data);
- extern void EditColmap_smoothselection(ViewData *data);
- extern bool EditColmap_newfile(ViewData *data, char *title, bool title_is_file);
- extern void EditColmap_openparentdir(ViewData *view_data);
-
- #endif
-